import request from '@/utils/request'

// 查询专家
export function getDoctorList(data) {
  return request({
    url: '/users/doctor/ningbo/list',
    method: 'POST',
	data
  })
}

//查询用户是否存在
export function checkUserPhone(cellphone) {
  return request({
    url: `/users/checkUserPhone/${cellphone}`,
    method: 'GET',
  })
}
//
export function userCustomer(cellphone) {
  return request({
    url: `/users/customer/${cellphone}`,
    method: 'GET',
  })
}
//
export function getUserList(data) {
  return request({
    // url: `/users/user/page/list`,
    url: `/users/user/page/list/v2`,
    method: 'POST',
	data
  })
}
//查看用户详情
export function getUserInfo(userId) {
  return request({
    url: `/users/${userId}`,
    method: 'GET',
  })
}